package com.tech.zhidengxian.util.exception;

import com.tech.zhidengxian.model.dto.result.ResponseCode;
import lombok.Data;

/**
*@author Ljh
*@param
*@date 2022/7/20
*@description 业务逻辑异常
*@return
**/
@Data
public class BizException extends RuntimeException{
    private ResponseCode code;
    private String message;
    public BizException(){
        super();
    }

    public BizException(String message) {
        super(message);
        this.message=message;
    }
    public BizException(ResponseCode code, String message){
        super(message);
        this.message=message;
        this.code=code;
    }
}
